package com.hjb.springbootquartz.controller;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;


@Component
public class TestDemo {
    @Scheduled(fixedRate = 5000)
    public void work(){
        System.out.println("测试数据---"+new Date());
    }
}
